<?php

	session_start();

	$img = imagecreate(40, 20);

	$black = imagecolorallocate($img, 0, 0, 0); 
	$numero = rand(100, 999);
	$number = $black . $numero;
	$_SESSION['captcha_session'] = ($numero); 
	
	$white = imagecolorallocate($img, 255, 255, 255); 
	imagestring($img, 10, 8, 3, $numero, $white); 
	header ("Content-type: image/png"); 
	imagepng($img);
	

?>	